package com.ruoyi.activiti.controller;

import com.ruoyi.activiti.domain.vo.FlowVo;
import com.ruoyi.activiti.service.impl.TaskUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>任务审批人信息</p>
 * <p>创建日期：2021-07-20</p>
 *
 * @author zhou-qf
 */
@RestController
@RequestMapping("/taskUserInfo")
public class TaskUserInfoController {

    @Autowired
    private TaskUserInfoService taskUserInfoService;

    /**
     * 获取所有审批流程人员信息
     * @param processId
     * @return
     */
    @RequestMapping("/allProcessApprover")
    public List<FlowVo> allProcessApprover(@RequestParam("processId") String processId){
        return taskUserInfoService.allProcessApprover(processId);
    }
}
